def rotateString(s,goal):
    if len(s)!=len(goal):
        return False
    #用A in B 可以直接判断A是否在B中
    return goal in (s+s)

print(rotateString("abcde","bcdea"))
print(rotateString("abcde","sghjk"))
